import { createStore, applyMiddleware, combineReducers } from "redux";
import logger from "redux-logger";

import reducerUser from "./user/reducerUser";
import reducerTest from "./testt/reducerTest";

const reducer = combineReducers({
	user: reducerUser,
	test: reducerTest
})

const store = createStore(reducer, applyMiddleware(logger));

// 获取仓库的类型
export type RootState = ReturnType<typeof store.getState>;

export default store;
